"""
@Project:${2108A}人工智能
@File:serializer.py
@Author:柴奇峰
@Date:20:09
"""

from rest_framework.serializers import ModelSerializer
from shops.models import Shops,Kind,Dishes


# 商家序列化
class ShopsModelSer(ModelSerializer):
    class Meta:
        model = Shops
        fields = '__all__'


# 菜品种类
class KindModelSer(ModelSerializer):
    class Meta:
        model = Kind
        fields = '__all__'


# 菜品
class DishesModelSer(ModelSerializer):
    class Meta:
        model = Dishes
        fields = '__all__'


